import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login'
import Home from '@/components/home'
import ActivityList from '@/components/activity/activityList'
import ActivityInfo from '@/components/activity/activityInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',redirect: '/login' },
    {path: '/login',name:'login',component: Login},
    {path: '/home',component:Home ,children:[{
    	path: '/home/activity/list',component: ActivityList
    },{
    	path: '/home/activity',component: ActivityInfo
    },{
    	path: '/home/activity/:id',component: ActivityInfo
    }]},
    
  ]
})